<form id="edit-form" class="form-horizontal lihua_half_free_xx" role="form" data-toggle="validator" method="POST" action="">
    <style type="text/css">
    .sp_results{
        height: 200px;
        overflow-y: scroll;
    }
    </style>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            第二份半价
        </div>
        <input id="c-name" class="form-control" name="row[type]" type="hidden" value="{$row.type}">
    </div>
    <input id="c-city_id" class="form-control" name="row[city_id]" type="hidden" value="{$auth->city_id}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Starttime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-starttime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[starttime]" type="text" value="{:$row.starttime?datetime($row.starttime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-endtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="{:$row.endtime?datetime($row.endtime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goodlist')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goodlist" data-rule="required" data-source="goods/lihua_goods/sel" data-multiple="true" class="form-control selectpage" name="row[goodlist]" type="text" value="{$row.goodlist|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Day_times')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-day_times" class="form-control" name="row[day_times]" type="number" value="{$row.day_times|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_times')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_times" class="form-control" name="row[order_times]" type="number" value="{$row.order_times|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mutex')}:</label>
        <div class="col-xs-12 col-sm-8">  
            <div class="radio">
                {foreach name="mutexStatus" item="vo"}
                <label for="row[mutex]-{$key}"><input id="row[mutex]-{$key}" name="row[mutex]" type="radio" value="{$key}" {in name="key" value="$row.mutex"}checked{/in} /> {$vo}</label> 
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">  
            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">设置参与门店id(多个门店用英文格式的‘|’隔开):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_list" class="form-control" name="row[store_list]" type="text" value="{$row.store_list}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
